package com.competition.param.impl;

import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

import com.competition.web.constant.ValidateCondtionAndMessage;
import com.param.impl.PageParam;

public class LogSearch extends PageParam {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_MSG)
	private String userName;

	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_MSG)
	private String activityName;

	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_MSG)
	private String nameOfAward;

	@Min(value = ValidateCondtionAndMessage.MIN_CREATE_TIME, message = ValidateCondtionAndMessage.CREATE_TIME_BY_MSG)
	private Long startTime;
	
	@Min(value = ValidateCondtionAndMessage.MIN_CREATE_TIME, message = ValidateCondtionAndMessage.CREATE_TIME_BY_MSG)
	private Long endTime;

	
	private Integer[] userIds;
	
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	private Byte status;
	
	
	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getNameOfAward() {
		return nameOfAward;
	}

	public void setNameOfAward(String nameOfAward) {
		this.nameOfAward = nameOfAward;
	}


	public Long getStartTime() {
		return startTime;
	}

	public void setStartTime(Long startTime) {
		this.startTime = startTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public Integer[] getUserIds() {
		return userIds;
	}

	public void setUserIds(Integer[] userIds) {
		this.userIds = userIds;
	}
	

}